<?php
	define('APPLICATION_URL'		, "http://localhost/GMS/");
	define('APPLICATION_DIR'      	, realpath(dirname(__FILE__)));
	define('TEMPLATE_DIR'       	, APPLICATION_DIR.'/view/templates/');
	define('TEMPLATE_C_DIR'       	, APPLICATION_DIR.'/view/templates_pub/');
	
	//============================== Smarty config ===============================//
	include("library/smarty/libs/Smarty.class.php");
	$smarty = new Smarty();
	$smarty->left_delimiter =  '<{';
	$smarty->right_delimiter =  '}>';
	
	$smarty->caching      = false;
	$smarty->template_dir = TEMPLATE_DIR;
	$smarty->compile_dir  = TEMPLATE_C_DIR;
	session_start();
	$_SESSION['smarty'] = $smarty;
//============================ End smarty config =============================//
?>